package de.ifi.lmu.snitzelhunt.basics;

/**
 * Class for saving a QuizTask inherits Task
 * 
 * @author jaschkowitz
 * 
 */
public class QuizTask extends Task {

	private String question;
	private String[] answers;

	/**
	 * simple Constructor
	 * 
	 * @param latitude
	 * @param longitude
	 * @param question
	 * @param answers
	 */
	public QuizTask(double latitude, double longitude, String question,
			String[] answers) {
		super(latitude, longitude);
		this.question = question;
		this.answers = answers;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String[] getAnswers() {
		return answers;
	}

	public void setAnswers(String[] answers) {
		this.answers = answers;
	}

	@Override
	public String getDetail() {
		return question;
	}

	@Override
	public String toString() {
		return getClass().getName() + " [question=" + question + ",latitude="
				+ latitude + "longituide, " + longitude + "]";
	}
}
